﻿using BarManagement.DomainModel.Base.Logging;
using BarManagement.Infrastructure.DataAccess.Base;
using System;
using System.Data.Entity;

namespace BarManagement.Infrastructure.DataAccess.Orders
{
    public class OrdersContext : DataContextBase
    {
        public OrdersContext(string nameOrConnectionString, ILogger logger)
            : base(nameOrConnectionString, logger)
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
            EfConfig.ConfigureEf(modelBuilder);
        } 
    }
}
